# encoding: utf-8
# module schema
import datetime
from decimal import Decimal

from pydantic.main import BaseModel
from typing import List, Optional


class UserChatRecordTyping(BaseModel):
    userId: int
    userName: str


class WatchMsgTyping(BaseModel):
    msg_type: str
    unique: str
    liveId: int
    enterpriseId: int
    userId: int
    inviter: Optional[int] = None
    agentUser: Optional[int] = None
    ip: Optional[str] = None
    duration: Optional[Decimal] = None


class WatchStatisticsTyping(BaseModel):
    type: str
    msg: WatchMsgTyping
